﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.ComponentModel;

namespace Chinaer.WCF.Contracts
{
    /// <summary>
    /// 商家是否阅读中心公告
    /// </summary>    
    public partial interface IChinaer
    {
        /// <summary>
        /// 添加商家是否阅读中心公告
        /// </summary>
        /// <param name="shangJiaIsReadZhongXinGongGao"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(
            Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "AddShangJiaIsReadZhongXinGongGao")]
        [Description("添加中心公告")]
        Chinaer.Model.Common.JsonResult AddShangJiaIsReadZhongXinGongGao(DTO.ShangJiaIsReadZhongXinGongGaoDTO shangJiaIsReadZhongXinGongGao);
        /// <summary>
        /// 更新商家是否阅读中心公告
        /// </summary>
        /// <param name="shangJiaIsReadZhongXinGongGao"></param>
        /// <returns></returns>

        [OperationContract]
        [WebInvoke(
            Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "UpdateShangJiaIsReadZhongXinGongGao")]
        [Description("更新中心公告")]
        Chinaer.Model.Common.JsonResult UpdateShangJiaIsReadZhongXinGongGao(DTO.ShangJiaIsReadZhongXinGongGaoDTO shangJiaIsReadZhongXinGongGao);
        /// <summary>
        /// 删除商家中心公告
        /// </summary>
        /// <param name="shangJiaIsReadZhongXinGongGao"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(
            Method = "POST",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "DeleteShangJiaIsReadZhongXinGongGao")]
        [Description("删除商家端中心公告")]
        Chinaer.Model.Common.JsonResult DeleteShangJiaIsReadZhongXinGongGao(DTO.ShangJiaIsReadZhongXinGongGaoDTO shangJiaIsReadZhongXinGongGao);
        /// <summary>
        /// 删除商家中心公告
        /// </summary>
        /// <param name="ID"></param>
        /// <returns></returns>
        [OperationContract]
        [WebInvoke(
            Method="GET",
            BodyStyle=WebMessageBodyStyle.Bare,
            RequestFormat=WebMessageFormat.Json,
            ResponseFormat=WebMessageFormat.Json,
            UriTemplate = "DeleteShangJiaIsReadZhongXinGongGaoByID/{ID}/{apiToken}")]
       [Description("删除商家端中心公告")]
        Chinaer.Model.Common.JsonResult DeleteShangJiaIsReadZhongXinGongGaoByID(string ID, string apiToken);
        /// <summary>
        /// 获取商家是否阅读的状态
        /// </summary>
        /// <param name="shangJiaID"></param>
        /// <param name="zhongXinGongGaoID"></param>
        /// <returns></returns>

        [OperationContract]
        [WebInvoke(
            Method = "GET",
            BodyStyle = WebMessageBodyStyle.Bare,
            RequestFormat = WebMessageFormat.Json,
            ResponseFormat = WebMessageFormat.Json,
            UriTemplate = "DeleteShangJiaIsReadZhongXinGongGaoByID/{shangJiaID}/{zhongXinGongGaoID}/{apiToken}")]
       [Description("获取商家端中心公告的阅读状态")]
        Chinaer.Model.Common.JsonResult GetShangJiaIsReadZhongXinGongGaoStatus(string shangJiaID, string zhongXinGongGaoID, string apiToken);

    }
}
